import random

if __name__ == '__main__':
    print(f"{'-' * 12}猜拳游戏{'-' * 12}")
    quan = int(input("请输入：1（石头），2（剪刀），3（布）："))
    sui = random.randint(1, 3)
    if quan == sui:
        print(f"平局。你的招数{quan},人机的招数{sui}")
    elif (quan == 1 and sui == 2) or (quan == 2 and sui == 3) or (quan == 3 and sui == 1):
        print(f"胜利！你的招数{quan},人机的招数{sui}")
    else:
        print(f"失败。你的招数{quan},人机的招数{sui}")
